home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1999 November / SOTMC_Nov1999-Ultimate.iso / mac / REALbasic ƒ / Examples / Techniques / Examples by Thomas Tempelmann / FAQs from RB-NUG mailing list / Serial port Handshake education < prev    next >
MacBinary  |  1999-07-06  |  4.3 KB  |  [clpt/drag]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Sat Apr 24 05:58:14 1999, modified Tue Jul 6 15:28:14 1999, creator 'drag', type 'clpt' "Serial port Handshake education", at 0x80 4223 bytes resource Apple HFS/HFS+ resource fork, map offset 0x1011, map length 0x6e, data length 0xf11, at 16 0xd000364a, nextResourceMap 0x975f700, fileRef 0x3426, list offset 0x1c, name offset 0x6e, 4 types, 0x54455854 'TEXT' * 1 resource offset 0x22 default (weak)
99% file Adobe Photoshop Color swatch, version 0, 256 colors; 1st RGB space (0), w 0x1011, x 0, y 0xf11, z 0 ; 2nd space (110), w 0xd000, x 0x364a, y 0x4756, z 0xc04a default (weak)
98% file data default
74% TrID Mac Text clippings (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[clpt]
macFileCreator[drag]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1f 53 65 72 69 61 6c | 20 70 6f 72 74 20 48 61 |..Serial| port Ha|
|00000010| 6e 64 73 68 61 6b 65 20 | 65 64 75 63 61 74 69 6f |ndshake |educatio|
|00000020| 6e 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |n.......|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 63 6c 70 74 64 72 61 | 67 01 00 00 00 00 00 00 |.clptdra|g.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 10 7f b3 47 46 36 b3 |........|....GF6.|
|00000060| a8 09 4e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..N.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 cf b8 00 00 |........|........|
|00000080| 00 00 01 00 00 00 10 11 | 00 00 0f 11 00 00 00 6e |........|.......n|
|00000090| d0 00 36 4a 47 56 c0 4a | 00 67 24 0c 47 ec 55 56 |..6JGV.J|.g$.G.UV|
|000000a0| c1 c0 01 67 1a 3f 2c 00 | 4c 3f 2c 00 4e 4e ad 08 |...g.?,.|L?,.NN..|
|000000b0| ca 2f 06 30 07 48 c0 2f | 00 4e ad 08 d2 60 26 30 |./.0.H./|.N...`&0|
|000000c0| 07 48 c0 29 40 00 18 39 | 7c 00 04 00 16 20 45 20 |.H.)@..9||.... E |
|000000d0| ab 00 36 3f 2c 00 4c 3f | 2c 00 4e 4e ad 08 ca 2f |..6?,.L?|,.NN.../|
|000000e0| 06 4e ad 08 c2 4c df 18 | f0 4e 5e 2e 9f 4e 75 4e |.N...L..|.N^..NuN|
|000000f0| 56 ff f4 48 e7 07 18 26 | 6e 00 08 2a 2b 00 12 2e |V..H...&|n..*+...|
|00000100| 2b 00 30 2c 2b 00 30 20 | 47 4a 68 00 10 67 2c 3f |+.0,+.0 |GJh..g,?|
|00000110| 2b 00 4c 3f 2b 00 4e 4e | ad 08 ca 2f 0b 42 67 20 |+.L?+.NN|.../.Bg |
|00000120| 47 3f 28 00 10 2f 0b 3f | 3c 00 29 4e ad 0a d2 30 |G?(../.?|<.)N...0|
|00000130| 1f 48 c0 2f 00 4e ad 08 | d2 60 4a 20 46 49 e8 00 |.H./.N..|.`J FI..|
|00000140| 9c 20 45 39 68 00 02 00 | 04 20 47 29 68 00 30 00 |. E9h...|. G)h.0.|
|00000150| 06 20 46 41 e8 00 ec 29 | 48 00 0e 39 7c 00 02 00 |. FA...)|H..9|...|
|00000160| 0a 08 d4 00 00 08 94 00 | 01 19 7c 00 46 00 01 20 |........|..|.F.. |
|00000170| 46 42 28 00 9a 2f 0b 48 | 7a 00 16 4e ba af 12 2f |FB(../.H|z..N.../|
|00000180| 00 00 0e 97 4a 61 6d 65 | 73 20 53 65 6e 74 6d 61 |....Jame|s Sentma|
|00000190| 6e 20 77 72 6f 74 65 3a | 0d 0d 3e 49 20 6b 6e 6f |n wrote:|..>I kno|
|000001a0| 77 20 74 68 61 74 20 77 | 69 74 68 20 61 20 54 43 |w that w|ith a TC|
|000001b0| 50 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 49 20 64 |P connec|tion I d|
|000001c0| 6f 6e 74 20 68 61 76 65 | 20 74 6f 20 77 6f 72 72 |ont have| to worr|
|000001d0| 79 20 61 62 6f 75 74 20 | 65 72 72 6f 72 0d 3e 63 |y about |error.>c|
|000001e0| 6f 72 72 65 63 74 69 6f | 6e 2e 20 42 75 74 20 77 |orrectio|n. But w|
|000001f0| 68 61 74 20 61 62 6f 75 | 74 20 53 65 72 69 61 6c |hat abou|t Serial|
|00000200| 20 70 6f 72 74 73 3f 20 | 43 6f 75 6c 64 20 6d 79 | ports? |Could my|
|00000210| 20 64 61 74 61 20 73 74 | 72 65 61 6d 20 62 65 20 | data st|ream be |
|00000220| 73 6f 6d 65 68 6f 77 0d | 3e 66 69 6c 6c 65 64 20 |somehow.|>filled |
|00000230| 77 69 74 68 20 67 61 72 | 62 61 67 65 3f 20 53 68 |with gar|bage? Sh|
|00000240| 6f 75 6c 64 20 49 20 64 | 6f 20 73 6f 6d 65 74 68 |ould I d|o someth|
|00000250| 69 6e 67 20 6c 69 6b 65 | 20 61 20 43 52 43 20 6f |ing like| a CRC o|
|00000260| 6e 20 74 68 65 64 61 74 | 61 20 74 68 61 74 20 49 |n thedat|a that I|
|00000270| 0d 3e 73 65 6e 64 3f 0d | 0d 44 65 70 65 6e 64 73 |.>send?.|.Depends|
|00000280| 2e 0d 0d 49 74 20 69 73 | 20 6e 6f 74 20 6c 69 6b |...It is| not lik|
|00000290| 65 6c 79 20 74 68 61 74 | 20 79 6f 75 20 67 65 74 |ely that| you get|
|000002a0| 20 67 61 72 62 6c 65 64 | 20 64 61 74 61 2e 20 57 | garbled| data. W|
|000002b0| 68 61 74 20 63 61 6e 20 | 68 61 70 70 65 6e 2c 0d |hat can |happen,.|
|000002c0| 68 6f 77 65 76 65 72 2c | 20 69 73 20 74 68 61 74 |however,| is that|
|000002d0| 20 65 69 74 68 65 72 20 | 79 6f 75 72 20 6f 72 20 | either |your or |
|000002e0| 74 68 65 20 6f 74 68 65 | 72 20 73 69 64 65 20 64 |the othe|r side d|
|000002f0| 6f 65 73 20 6e 6f 74 20 | 72 65 63 65 69 76 65 0d |oes not |receive.|
|00000300| 65 76 65 72 79 20 62 79 | 74 65 20 74 68 61 74 20 |every by|te that |
|00000310| 77 61 73 20 74 72 61 6e | 73 6d 69 74 74 65 64 3a |was tran|smitted:|
|00000320| 20 57 68 65 6e 20 65 69 | 74 68 65 72 20 73 69 64 | When ei|ther sid|
|00000330| 65 20 64 6f 65 73 20 6e | 6f 74 0d 66 65 74 63 68 |e does n|ot.fetch|
|00000340| 20 74 68 65 20 64 61 74 | 61 20 71 75 69 63 6b 6c | the dat|a quickl|
|00000350| 79 20 65 6e 6f 75 67 68 | 2c 20 64 61 74 61 20 6d |y enough|, data m|
|00000360| 61 79 20 67 65 74 20 6c | 6f 73 74 2e 0d 0d 54 68 |ay get l|ost...Th|
|00000370| 65 20 70 72 65 76 65 6e | 74 20 74 68 61 74 2c 20 |e preven|t that, |
|00000380| 68 61 6e 64 73 68 61 6b | 69 6e 67 20 69 73 20 75 |handshak|ing is u|
|00000390| 73 65 64 20 28 62 75 69 | 6c 74 2d 69 6e 20 69 6e |sed (bui|lt-in in|
|000003a0| 20 4d 61 63 20 4f 53 0d | 73 65 72 69 61 6c 20 63 | Mac OS.|serial c|
|000003b0| 6f 64 65 2c 20 61 6e 64 | 20 68 6f 70 65 66 75 6c |ode, and| hopeful|
|000003c0| 6c 79 20 6f 6e 20 44 4f | 53 2f 57 69 6e 2c 20 74 |ly on DO|S/Win, t|
|000003d0| 6f 6f 29 3a 0d 0d 54 68 | 65 20 72 65 63 65 69 76 |oo):..Th|e receiv|
|000003e0| 65 72 20 68 61 73 20 61 | 20 62 75 66 66 65 72 20 |er has a| buffer |
|000003f0| 28 74 68 61 74 20 79 6f | 75 20 63 61 6e 20 65 76 |(that yo|u can ev|
|00000400| 65 6e 20 6d 61 6b 65 20 | 62 69 67 67 65 72 29 20 |en make |bigger) |
|00000410| 77 68 65 72 65 0d 69 74 | 20 73 74 6f 72 65 73 20 |where.it| stores |
|00000420| 74 68 65 20 64 61 74 61 | 20 74 68 61 74 20 77 61 |the data| that wa|
|00000430| 73 20 72 65 63 65 69 76 | 65 64 20 66 72 6f 6d 20 |s receiv|ed from |
|00000440| 74 68 65 20 73 65 72 69 | 61 6c 20 70 6f 72 74 2e |the seri|al port.|
|00000450| 20 54 68 69 73 0d 69 73 | 20 64 6f 6e 65 20 69 6e | This.is| done in|
|00000460| 20 68 61 72 64 77 61 72 | 65 20 69 6e 74 65 72 72 | hardwar|e interr|
|00000470| 75 70 74 20 68 61 6e 64 | 6c 65 72 73 2c 20 73 6f |upt hand|lers, so|
|00000480| 20 74 68 61 74 20 79 6f | 75 72 20 61 70 70 20 63 | that yo|ur app c|
|00000490| 61 6e 20 64 6f 0d 6f 74 | 68 65 72 20 73 74 75 66 |an do.ot|her stuf|
|000004a0| 66 20 61 6e 64 20 64 6f | 65 73 20 6e 6f 74 20 68 |f and do|es not h|
|000004b0| 61 76 65 20 74 6f 20 6c | 69 73 74 65 6e 20 72 69 |ave to l|isten ri|
|000004c0| 67 68 74 20 74 68 65 6e | 2e 0d 0d 49 66 20 79 6f |ght then|...If yo|
|000004d0| 75 20 63 61 6c 6c 20 74 | 68 65 20 66 75 6e 63 74 |u call t|he funct|
|000004e0| 69 6f 6e 20 74 6f 20 72 | 65 61 64 20 64 61 74 61 |ion to r|ead data|
|000004f0| 20 66 72 6f 6d 20 74 68 | 65 20 73 65 72 69 61 6c | from th|e serial|
|00000500| 20 70 6f 72 74 2c 0d 79 | 6f 75 20 61 63 74 75 61 | port,.y|ou actua|
|00000510| 6c 6c 79 20 67 65 74 20 | 74 68 65 20 64 61 74 61 |lly get |the data|
|00000520| 20 66 72 6f 6d 20 74 68 | 61 74 20 62 75 66 66 65 | from th|at buffe|
|00000530| 72 2e 0d 0d 4e 6f 77 2c | 20 77 68 65 6e 20 74 68 |r...Now,| when th|
|00000540| 69 73 20 62 75 66 66 65 | 72 20 67 65 74 73 20 6e |is buffe|r gets n|
|00000550| 65 61 72 6c 79 20 66 75 | 6c 6c 20 28 77 68 65 6e |early fu|ll (when|
|00000560| 20 69 74 20 72 65 61 63 | 68 65 73 20 74 68 65 0d | it reac|hes the.|
|00000570| 73 6f 2d 63 61 6c 6c 65 | 64 20 68 69 67 68 20 77 |so-calle|d high w|
|00000580| 61 74 65 72 20 6d 61 72 | 6b 2c 20 77 68 69 63 68 |ater mar|k, which|
|00000590| 20 69 73 20 75 73 75 61 | 6c 6c 79 20 61 62 6f 75 | is usua|lly abou|
|000005a0| 74 20 61 74 20 33 2f 34 | 0d 6f 66 20 74 68 65 20 |t at 3/4|.of the |
|000005b0| 62 75 66 66 65 72 20 73 | 69 7a 65 29 2c 20 69 74 |buffer s|ize), it|
|000005c0| 20 74 65 6c 6c 73 20 74 | 68 65 20 73 65 6e 64 65 | tells t|he sende|
|000005d0| 72 20 6f 6e 20 74 68 65 | 20 6f 74 68 65 72 20 73 |r on the| other s|
|000005e0| 69 64 65 0d 74 6f 20 73 | 75 73 70 65 6e 64 20 73 |ide.to s|uspend s|
|000005f0| 65 6e 64 69 6e 67 20 6d | 6f 72 65 20 64 61 74 61 |ending m|ore data|
|00000600| 20 75 6e 74 69 6c 20 66 | 75 72 74 68 65 72 20 6e | until f|urther n|
|00000610| 6f 74 69 63 65 2e 0d 0d | 54 68 69 73 20 6e 6f 74 |otice...|This not|
|00000620| 69 66 69 63 61 74 69 6f | 6e 20 69 73 20 64 6f 6e |ificatio|n is don|
|00000630| 65 20 69 6e 20 65 69 74 | 68 65 72 20 6f 66 20 74 |e in eit|her of t|
|00000640| 68 65 73 65 20 77 61 79 | 73 3a 0d 31 2e 20 57 69 |hese way|s:.1. Wi|
|00000650| 74 68 20 73 6f 66 74 77 | 61 72 65 20 68 61 6e 64 |th softw|are hand|
|00000660| 73 68 61 6b 69 6e 67 20 | 28 48 53 29 2c 20 61 20 |shaking |(HS), a |
|00000670| 73 70 65 63 69 61 6c 20 | 63 68 61 72 61 63 74 65 |special |characte|
|00000680| 72 20 69 73 20 73 65 6e | 74 20 74 6f 0d 74 68 65 |r is sen|t to.the|
|00000690| 20 6f 74 68 65 72 20 73 | 69 64 65 20 28 41 53 43 | other s|ide (ASC|
|000006a0| 49 49 20 63 6f 64 65 20 | 58 4f 46 46 29 2e 0d 32 |II code |XOFF)..2|
|000006b0| 2e 20 57 69 74 68 20 68 | 61 72 64 77 61 72 65 20 |. With h|ardware |
|000006c0| 48 53 2c 20 61 6e 20 65 | 78 74 72 61 20 73 69 67 |HS, an e|xtra sig|
|000006d0| 6e 61 6c 20 6c 69 6e 65 | 20 69 73 20 75 73 65 64 |nal line| is used|
|000006e0| 3a 20 49 6e 20 56 2e 32 | 34 2f 0d 52 53 32 33 32 |: In V.2|4/.RS232|
|000006f0| 20 74 65 72 6d 73 20 74 | 68 69 73 20 6c 69 6e 65 | terms t|his line|
|00000700| 20 69 73 20 63 6f 6e 6e | 65 63 74 65 64 20 74 6f | is conn|ected to|
|00000710| 20 74 68 65 20 52 54 53 | 20 61 6e 64 20 43 54 53 | the RTS| and CTS|
|00000720| 20 70 69 6e 73 0d 6f 66 | 20 74 68 65 20 73 65 72 | pins.of| the ser|
|00000730| 69 61 6c 20 63 6f 6e 6e | 65 63 74 6f 72 2c 20 69 |ial conn|ector, i|
|00000740| 6e 20 41 70 70 6c 65 20 | 4d 61 63 69 6e 74 6f 73 |n Apple |Macintos|
|00000750| 68 20 74 65 72 6d 73 20 | 74 68 65 79 20 61 72 65 |h terms |they are|
|00000760| 0d 63 61 6c 6c 65 64 20 | 48 53 4b 6f 20 28 48 53 |.called |HSKo (HS|
|00000770| 20 6f 75 74 2c 20 6e 6f | 74 20 73 75 72 65 20 61 | out, no|t sure a|
|00000780| 62 6f 75 74 20 74 68 65 | 20 70 72 6f 70 65 72 20 |bout the| proper |
|00000790| 63 61 70 69 74 61 6c 69 | 7a 61 74 69 6f 6e 29 0d |capitali|zation).|
|000007a0| 61 6e 64 20 48 53 48 69 | 20 28 48 53 20 69 6e 29 |and HSHi| (HS in)|
|000007b0| 20 70 69 6e 73 2e 0d 0d | 4f 6e 63 65 20 74 68 65 | pins...|Once the|
|000007c0| 20 72 65 63 65 69 76 65 | 72 27 73 20 62 75 66 66 | receive|r's buff|
|000007d0| 65 72 20 68 61 73 20 62 | 65 65 6e 20 65 6d 70 74 |er has b|een empt|
|000007e0| 69 65 64 20 65 6e 6f 75 | 67 68 2c 20 69 74 20 67 |ied enou|gh, it g|
|000007f0| 69 76 65 73 0d 61 6e 6f | 74 68 65 72 20 6e 6f 74 |ives.ano|ther not|
|00000800| 69 66 69 63 61 74 69 6f | 6e 20 28 65 69 74 68 65 |ificatio|n (eithe|
|00000810| 72 20 73 65 6e 64 69 6e | 67 20 61 20 58 4f 4e 20 |r sendin|g a XON |
|00000820| 63 68 61 72 20 6f 72 20 | 69 6e 76 65 72 74 69 6e |char or |invertin|
|00000830| 67 20 74 68 65 0d 73 74 | 61 74 65 20 6f 66 20 74 |g the.st|ate of t|
|00000840| 68 65 20 52 54 53 2f 48 | 73 6b 4f 20 6c 69 6e 65 |he RTS/H|skO line|
|00000850| 29 20 74 6f 20 74 68 65 | 20 6f 74 68 65 72 20 73 |) to the| other s|
|00000860| 69 64 65 20 74 68 61 74 | 20 74 65 6c 6c 73 20 69 |ide that| tells i|
|00000870| 74 0d 74 68 61 74 20 69 | 74 20 63 61 6e 20 72 65 |t.that i|t can re|
|00000880| 73 75 6d 65 20 73 65 6e | 64 69 6e 67 20 64 61 74 |sume sen|ding dat|
|00000890| 61 2e 0d 0d 57 69 74 68 | 20 73 75 63 68 20 61 20 |a...With| such a |
|000008a0| 68 61 6e 64 73 68 61 6b | 65 20 69 6e 20 70 6c 61 |handshak|e in pla|
|000008b0| 63 65 2c 20 79 6f 75 20 | 63 61 6e 20 61 73 73 75 |ce, you |can assu|
|000008c0| 6d 65 20 74 68 61 74 20 | 6e 6f 0d 64 61 74 61 20 |me that |no.data |
|000008d0| 67 65 74 73 20 6c 6f 73 | 74 2e 0d 0d 4d 6f 72 65 |gets los|t...More|
|000008e0| 20 74 68 69 6e 67 73 20 | 66 6f 72 20 63 6f 6e 73 | things |for cons|
|000008f0| 69 64 65 72 61 74 69 6f | 6e 3a 0d 0d 61 29 0d 41 |ideratio|n:..a).A|
|00000900| 73 20 6c 6f 6e 67 20 61 | 73 20 74 68 65 20 73 65 |s long a|s the se|
|00000910| 6e 64 65 72 20 68 61 73 | 20 74 68 69 73 20 73 74 |nder has| this st|
|00000920| 61 74 65 20 6e 6f 74 20 | 74 6f 20 73 65 6e 64 20 |ate not |to send |
|00000930| 61 6e 79 20 6d 6f 72 65 | 20 64 61 74 61 0d 6f 75 |any more| data.ou|
|00000940| 74 2c 20 63 61 6c 6c 73 | 20 74 6f 20 74 68 65 20 |t, calls| to the |
|00000950| 77 72 69 74 65 20 6d 65 | 74 68 6f 64 20 66 6f 72 |write me|thod for|
|00000960| 20 74 68 65 20 73 65 72 | 69 61 6c 20 70 6f 72 74 | the ser|ial port|
|00000970| 20 77 69 6c 6c 20 65 69 | 74 68 65 72 0d 72 65 74 | will ei|ther.ret|
|00000980| 75 72 6e 20 69 6d 6d 65 | 64 69 61 74 65 6c 79 2c |urn imme|diately,|
|00000990| 20 74 65 6c 6c 69 6e 67 | 20 74 68 61 74 20 6e 6f | telling| that no|
|000009a0| 74 20 74 68 65 20 66 75 | 6c 6c 20 6e 75 6d 62 65 |t the fu|ll numbe|
|000009b0| 72 20 6f 66 20 62 79 74 | 65 73 0d 68 61 76 65 20 |r of byt|es.have |
|000009c0| 62 65 65 6e 20 73 65 6e | 64 20 28 73 6f 20 79 6f |been sen|d (so yo|
|000009d0| 75 20 6e 65 65 64 20 74 | 6f 20 64 65 74 65 63 74 |u need t|o detect|
|000009e0| 20 74 68 61 74 20 61 6e | 64 20 74 68 65 6e 20 6b | that an|d then k|
|000009f0| 65 65 70 20 6f 6e 0d 72 | 65 73 65 6e 64 69 6e 67 |eep on.r|esending|
|00000a00| 20 74 68 69 73 20 64 61 | 74 61 29 20 6f 72 20 74 | this da|ta) or t|
|00000a10| 68 65 20 77 72 69 74 65 | 20 6d 65 74 68 6f 64 20 |he write| method |
|00000a20| 64 6f 65 73 20 77 61 69 | 74 20 61 6e 64 20 6e 6f |does wai|t and no|
|00000a30| 74 0d 72 65 74 75 72 6e | 20 75 6e 74 69 6c 20 74 |t.return| until t|
|00000a40| 68 65 20 72 65 63 65 69 | 76 65 72 20 67 69 76 65 |he recei|ver give|
|00000a50| 73 20 69 74 73 20 4f 4b | 20 74 6f 20 61 63 63 65 |s its OK| to acce|
|00000a60| 70 74 20 74 68 65 20 64 | 61 74 61 2e 0d 0d 62 29 |pt the d|ata...b)|
|00000a70| 0d 49 66 20 79 6f 75 20 | 75 73 65 20 73 6f 66 74 |.If you |use soft|
|00000a80| 77 61 72 65 20 48 53 2c | 20 74 68 65 6e 20 74 68 |ware HS,| then th|
|00000a90| 65 20 73 65 72 69 61 6c | 20 63 6f 6e 6e 65 63 74 |e serial| connect|
|00000aa0| 69 6f 6e 20 63 61 62 6c | 65 0d 77 6f 75 6c 64 20 |ion cabl|e.would |
|00000ab0| 6e 6f 74 20 6e 65 65 64 | 20 6d 6f 72 65 20 74 68 |not need| more th|
|00000ac0| 61 6e 20 33 20 77 69 72 | 65 73 3a 20 41 20 63 6f |an 3 wir|es: A co|
|00000ad0| 6d 6d 6f 6e 20 67 72 6f | 75 6e 64 2c 20 61 6e 64 |mmon gro|und, and|
|00000ae0| 20 6f 6e 65 0d 77 69 72 | 65 20 66 6f 72 20 65 61 | one.wir|e for ea|
|00000af0| 63 68 20 64 69 72 65 63 | 74 69 6f 6e 20 6f 66 20 |ch direc|tion of |
|00000b00| 64 61 74 61 20 74 6f 20 | 62 65 20 74 72 61 6e 73 |data to |be trans|
|00000b10| 6d 69 74 74 65 64 2e 20 | 54 68 65 72 65 0d 69 73 |mitted. |There.is|
|00000b20| 20 65 76 65 6e 20 28 6f | 6c 64 29 20 63 61 62 6c | even (o|ld) cabl|
|00000b30| 65 73 20 6f 75 74 20 74 | 68 65 72 65 20 66 6f 72 |es out t|here for|
|00000b40| 20 74 68 65 20 4d 61 63 | 20 74 68 61 74 20 64 6f | the Mac| that do|
|00000b50| 20 6f 6e 6c 79 0d 68 61 | 76 65 20 74 68 65 73 65 | only.ha|ve these|
|00000b60| 20 77 69 72 65 73 20 61 | 6e 64 20 61 72 65 20 6d | wires a|nd are m|
|00000b70| 69 73 73 69 6e 67 20 74 | 68 65 20 68 61 72 64 77 |issing t|he hardw|
|00000b80| 61 72 65 20 48 53 20 77 | 69 72 65 73 2e 0d 53 6f |are HS w|ires..So|
|00000b90| 2c 20 73 6f 66 74 77 61 | 72 65 20 48 53 20 6d 69 |, softwa|re HS mi|
|00000ba0| 67 68 74 20 62 65 20 6d | 6f 72 65 20 63 6f 6d 70 |ght be m|ore comp|
|00000bb0| 61 74 69 62 6c 65 2e 20 | 48 6f 77 65 76 65 72 2c |atible. |However,|
|00000bc0| 20 73 69 6e 63 65 0d 73 | 70 65 63 69 61 6c 20 63 | since.s|pecial c|
|00000bd0| 6f 64 65 73 20 61 72 65 | 20 73 65 6e 64 20 66 6f |odes are| send fo|
|00000be0| 72 20 63 6f 6e 74 72 6f | 6c 6c 69 6e 67 20 74 68 |r contro|lling th|
|00000bf0| 65 20 64 61 74 61 20 66 | 6c 6f 77 2c 0d 74 68 65 |e data f|low,.the|
|00000c00| 73 65 20 63 6f 64 65 73 | 20 6d 61 79 20 6e 6f 74 |se codes| may not|
|00000c10| 20 62 65 20 75 73 65 64 | 20 69 6e 20 74 68 65 20 | be used| in the |
|00000c20| 22 6e 6f 72 6d 61 6c 22 | 20 64 61 74 61 20 74 68 |"normal"| data th|
|00000c30| 61 74 20 69 73 0d 65 78 | 63 68 61 6e 67 65 64 20 |at is.ex|changed |
|00000c40| 62 65 74 77 65 65 6e 20 | 74 68 65 20 74 77 6f 20 |between |the two |
|00000c50| 63 6f 6d 70 75 74 65 72 | 73 2e 20 41 73 20 6c 6f |computer|s. As lo|
|00000c60| 6e 67 20 61 73 20 79 6f | 75 20 74 72 61 6e 73 6d |ng as yo|u transm|
|00000c70| 69 74 0d 6f 6e 6c 79 20 | 74 65 78 74 2c 20 74 68 |it.only |text, th|
|00000c80| 69 73 20 69 73 20 6e 6f | 74 20 61 20 70 72 6f 62 |is is no|t a prob|
|00000c90| 6c 65 6d 2e 20 49 66 20 | 79 6f 75 20 74 72 61 6e |lem. If |you tran|
|00000ca0| 73 6d 69 74 20 62 69 6e | 61 72 79 0d 64 61 74 61 |smit bin|ary.data|
|00000cb0| 20 74 68 61 74 20 63 61 | 6e 20 63 6f 6e 74 61 69 | that ca|n contai|
|00000cc0| 6e 20 41 4e 59 20 62 79 | 74 65 20 63 6f 64 65 73 |n ANY by|te codes|
|00000cd0| 2c 20 74 68 65 6e 20 79 | 6f 75 20 68 61 76 65 20 |, then y|ou have |
|00000ce0| 74 6f 0d 70 72 6f 67 72 | 61 6d 20 73 6f 6d 65 20 |to.progr|am some |
|00000cf0| 63 6f 64 65 20 74 6f 20 | 74 61 6b 65 20 63 61 72 |code to |take car|
|00000d00| 65 20 6f 66 20 74 68 61 | 74 20 62 79 20 70 72 65 |e of tha|t by pre|
|00000d10| 76 65 6e 74 69 6e 67 20 | 66 72 6f 6d 0d 73 65 6e |venting |from.sen|
|00000d20| 64 69 6e 67 20 74 68 65 | 20 58 4f 4e 2f 58 4f 46 |ding the| XON/XOF|
|00000d30| 46 20 63 6f 64 65 73 20 | 61 6e 64 20 65 6e 63 6f |F codes |and enco|
|00000d40| 64 69 6e 67 20 74 68 65 | 6d 20 69 6e 74 6f 20 6f |ding the|m into o|
|00000d50| 74 68 65 72 0d 63 6f 64 | 65 73 2c 20 69 6e 73 74 |ther.cod|es, inst|
|00000d60| 65 61 64 2e 0d 0d 63 29 | 0d 57 68 65 6e 20 75 73 |ead...c)|.When us|
|00000d70| 69 6e 67 20 68 61 72 64 | 77 61 72 65 20 48 53 2c |ing hard|ware HS,|
|00000d80| 20 79 6f 75 20 64 6f 6e | 27 74 20 6e 65 65 64 20 | you don|'t need |
|00000d90| 74 6f 20 77 6f 72 72 79 | 20 61 62 6f 75 74 0d 74 |to worry| about.t|
|00000da0| 68 65 20 62 79 74 65 73 | 20 74 68 61 74 20 79 6f |he bytes| that yo|
|00000db0| 75 20 74 72 61 6e 73 6d | 69 74 2e 20 54 68 65 20 |u transm|it. The |
|00000dc0| 6f 6e 6c 79 20 70 72 6f | 62 6c 65 6d 20 6d 69 67 |only pro|blem mig|
|00000dd0| 68 74 20 62 65 0d 74 68 | 61 74 20 74 68 65 20 63 |ht be.th|at the c|
|00000de0| 61 62 6c 65 20 75 73 65 | 64 20 74 6f 20 63 6f 6e |able use|d to con|
|00000df0| 6e 65 63 74 20 74 68 65 | 20 73 65 72 69 61 6c 20 |nect the| serial |
|00000e00| 70 6f 72 74 73 20 6d 61 | 79 20 6e 6f 74 0d 73 75 |ports ma|y not.su|
|00000e10| 70 70 6f 72 74 20 74 68 | 65 20 6e 65 63 65 73 73 |pport th|e necess|
|00000e20| 61 72 79 20 77 69 72 65 | 73 20 66 6f 72 20 68 61 |ary wire|s for ha|
|00000e30| 72 77 61 72 65 20 48 53 | 2e 20 54 68 6f 73 65 20 |rware HS|. Those |
|00000e40| 63 61 62 6c 65 73 0d 61 | 72 65 20 72 61 72 65 2c |cables.a|re rare,|
|00000e50| 20 68 6f 77 65 76 65 72 | 2c 20 61 6e 64 20 69 66 | however|, and if|
|00000e60| 20 79 6f 75 20 72 65 61 | 6c 6c 79 20 77 61 6e 74 | you rea|lly want|
|00000e70| 20 74 6f 20 6d 61 6b 65 | 20 73 75 72 65 0d 74 68 | to make| sure.th|
|00000e80| 61 74 20 79 6f 75 72 20 | 68 61 6e 64 73 68 61 6b |at your |handshak|
|00000e90| 65 20 77 6f 72 6b 73 2c | 20 61 6e 64 20 62 6f 74 |e works,| and bot|
|00000ea0| 68 20 63 6f 6e 6e 65 63 | 74 65 64 20 63 6f 6d 70 |h connec|ted comp|
|00000eb0| 75 74 65 72 73 0d 72 75 | 6e 20 79 6f 75 72 20 73 |uters.ru|n your s|
|00000ec0| 6f 66 74 77 61 72 65 2c | 20 74 68 65 6e 20 79 6f |oftware,| then yo|
|00000ed0| 75 20 63 61 6e 20 74 65 | 73 74 20 74 68 69 73 3a |u can te|st this:|
|00000ee0| 20 4c 65 74 20 6f 6e 65 | 20 73 69 64 65 0d 6b 6e | Let one| side.kn|
|00000ef0| 6f 77 20 74 68 61 74 20 | 69 74 20 73 68 6f 75 6c |ow that |it shoul|
|00000f00| 64 20 6a 75 73 74 20 6d | 6f 6e 69 74 6f 72 20 74 |d just m|onitor t|
|00000f10| 68 65 20 72 65 63 65 69 | 76 65 20 62 75 66 66 65 |he recei|ve buffe|
|00000f20| 72 2c 20 62 75 74 0d 6e | 6f 74 20 66 65 74 63 68 |r, but.n|ot fetch|
|00000f30| 20 74 68 65 20 64 61 74 | 61 20 75 6e 74 69 6c 20 | the dat|a until |
|00000f40| 61 20 66 65 77 20 73 65 | 63 6f 6e 64 73 20 61 66 |a few se|conds af|
|00000f50| 74 65 72 20 69 74 20 67 | 6f 74 20 66 75 6c 6c 2e |ter it g|ot full.|
|00000f60| 0d 54 68 65 6e 20 74 68 | 65 20 73 65 6e 64 69 6e |.Then th|e sendin|
|00000f70| 67 20 73 69 64 65 20 73 | 65 6e 64 73 20 65 6e 6f |g side s|ends eno|
|00000f80| 75 67 68 20 64 61 74 61 | 20 74 6f 20 6f 76 65 72 |ugh data| to over|
|00000f90| 66 6c 6f 77 20 74 68 65 | 0d 62 75 66 66 65 72 3a |flow the|.buffer:|
|00000fa0| 20 54 68 65 20 72 65 63 | 65 69 76 65 72 20 63 68 | The rec|eiver ch|
|00000fb0| 65 63 6b 73 20 69 66 20 | 69 74 20 67 65 74 73 20 |ecks if |it gets |
|00000fc0| 61 6c 6c 20 64 61 74 61 | 20 6f 72 20 69 66 0d 73 |all data| or if.s|
|00000fd0| 6f 6d 65 20 64 61 74 61 | 20 67 6f 74 20 6c 6f 73 |ome data| got los|
|00000fe0| 74 3a 20 54 68 61 74 27 | 73 20 77 68 61 74 20 74 |t: That'|s what t|
|00000ff0| 65 6c 6c 73 20 79 6f 75 | 20 77 68 65 74 68 65 72 |ells you| whether|
|00001000| 20 48 53 0d 77 6f 72 6b | 65 64 20 6f 72 20 6e 6f | HS.work|ed or no|
|00001010| 74 2e 0d 0d 54 68 6f 6d | 61 73 0d 00 00 00 16 00 |t...Thom|as......|
|00001020| 01 00 00 00 00 00 0b 00 | 09 00 04 00 00 00 09 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 30 00 00 00 01 00 00 00 |........|0.......|
|00001040| 04 00 00 00 00 00 00 00 | 02 54 45 58 54 00 00 01 |........|.TEXT...|
|00001050| 00 00 00 00 00 00 00 00 | 00 73 74 79 6c 00 00 01 |........|.styl...|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 24 00 00 00 |........|....$...|
|00001070| 05 00 01 04 07 00 5f 00 | 36 02 00 02 3b 00 00 00 |......_.|6...;...|
|00001080| 00 00 00 01 70 8c 00 00 | 00 09 99 91 e0 00 00 00 |....p...|........|
|00001090| 00 00 00 01 00 00 00 10 | 11 00 00 0f 11 00 00 00 |........|........|
|000010a0| 6e 09 75 f7 00 34 26 00 | 00 00 1c 00 6e 00 03 54 |n.u..4&.|....n..T|
|000010b0| 45 58 54 00 00 00 22 73 | 74 79 6c 00 00 00 2e 64 |EXT..."s|tyl....d|
|000010c0| 72 61 67 00 00 00 3a 6b | 77 73 74 00 00 00 46 01 |rag...:k|wst...F.|
|000010d0| 00 ff ff 00 00 00 00 00 | 00 00 00 01 00 ff ff 00 |........|........|
|000010e0| 00 0e 9b 00 00 00 00 00 | 80 ff ff 00 00 0e b5 00 |........|........|
|000010f0| 00 00 00 bf 4c ff ff 00 | 00 0e e9 00 0f 9c 0c 00 |....L...|........|
+--------+-------------------------+-------------------------+--------+--------+